<%@ page import="com.zhaogang.controller.MdUtils"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录页面</title>
<link rel="shortcut icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon" />
<link href="${pageContext.request.contextPath}/css/amazeui.css"
	rel="stylesheet" type="text/css">
<link href="${pageContext.request.contextPath}/css/dlstyle.css"
	rel="stylesheet" type="text/css">
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/md5.js""></script>
<style type="text/css">
.login-banner {
	background-image:
		url('${pageContext.request.contextPath}/images/logbig.jpg');
	background-size: cover;
	background-repeat: no-repeat;
	width: 1442px;
	margin: 0 auto;
}
</style>
</head>
<body>
${msg }
	<div class="login-banner">
		<div class="login-boxtitle">
			<a href="${pageContext.request.contextPath}/goods/firstQuery"><img
				alt="logo" src="${pageContext.request.contextPath}/images/logo.png" /></a>
		</div>
		<div class="login-main">
			<div class="login-box">
				<h3 class="title">登录商城</h3>
				<div class="clear"></div>
				<div class="login-form">
					<form method="post" id="loginForm">
						<div class="user-name">
							<input type="text" name="username" id="username"
								placeholder="请输入用户名">
						</div>
						<div class="user-pass">
							<input type="password" name="password" id="password"
								placeholder="请输入密码">
						</div>
						<div style="text-align: center">
							用户:<input
								style="width: 50px; height: 18px; margin-top: 10px; margin-left: 0px;"
								type="radio" name="sex" checked="checked" value="1" /> 商户:<input
								style="width: 50px; height: 18px;" type="radio" name="sex"
								value="0" />
						</div>
						<div class="am-cf">
							<input type="submit" name="" id="submit" value="登 录"
								class="am-btn am-btn-primary am-btn-sm">
						</div>
					</form>
				</div>
				<div class="login-links">
					<a
						href="${pageContext.request.contextPath}/pages/user/register.jsp"
						class="zcnext am-fr am-btn-default">注册</a> <br />
				</div>
				<script type="text/javascript">
				function $(id){
					return document.getElementById(id);
				}
				var submit = $("submit");
				submit.onclick = function(){
						var hash = MD5($("password").value);    
					    $("password").value = hash; 
						$("loginForm").action='${pageContext.request.contextPath}/saleAccount/loginValidate';
						$("loginForm").submit;
				}
				</script>
			</div>
		</div>
	</div>
</body>
</html>